package org.kl.auditsupervision.web.workflow;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.kl.auditsupervision.entity.fnd.AuditProDtl;
import org.kl.auditsupervision.service.fnd.AuditProDtlService;
import org.kl.auditsupervision.service.fnd.EffectEvaluateService;
import org.kl.auditsupervision.service.fnd.ZgCsService;
import org.kl.bf.entity.basic.Role;
import org.kl.bf.entity.basic.User;
import org.kl.bf.entity.easyui.ComboBox;
import org.kl.bf.service.basic.AttachmentService;
import org.kl.bf.service.basic.RoleService;
import org.kl.bf.service.basic.UserService;
import org.kl.bf.web.base.BasicController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springside.modules.web.MediaTypes;

/**
 * 审批提交后过程
 * @author QJ
 *
 */
@Controller
@RequestMapping(value = "/wfl/afterPost")
public class AfterPostController extends BasicController {
	@Autowired
	private UserService userService;

	@Autowired
	private AuditProDtlService auditProDtlService;
	@Autowired
	private EffectEvaluateService effectEvaluateService;
	@Autowired
	private AttachmentService attachmentService;
	@Autowired
	private ZgCsService zgCsService;
	
	/**
	 * 
	 * @param ASConfirm
	 * @return
	 */
	@RequestMapping(value = "ASConfirm", method = RequestMethod.POST, produces = MediaTypes.JSON_UTF_8)
	@ResponseBody
	public String validateASConfirm(@RequestParam(value = "businessId",required = false) String businessId,
			@RequestParam(value = "operate",required = false) String operate,
			@RequestParam(value = "taskId",required= false) String taskId,
			HttpServletRequest request) {
		try{
			
			
			//执行自己的逻辑
			return ajaxMsg("", true, null);
		}catch(Exception e){
			e.printStackTrace();
			return ajaxMsg("提交后的执行过程失败，"+e.getMessage(), false, null);
		}
	}
}
